﻿@using DocProcessingWorkflow.Models.JobsAdmin
@model MediaDefinitionAuditsViewModel
  
<table id="availableItems" class="table">
  <thead>
    <tr>
      <th class="col-md-2">Date</th>
      <th class="col-md-8">Details</th>
      <th class="col-md-2">Username</th>
    </tr>
  </thead>
  @if (Model.Audits.Any())
  {
    foreach (MediaDefinitionAuditViewModel audit in Model.Audits)
    {
      <tr>
        <td>@audit.AuditDate.ToString("g")</td>
        <td>@Html.Raw(@Html.Encode(@audit.Details).Replace(Environment.NewLine, "<BR />"))</td>
        <td>@audit.UserName</td>
      </tr>
    }
  }
  else
  {
    <tr>
      <td colspan="4">No audits</td>
    </tr>
  }
</table>